var result;

exports.get = function(request, response){
    
    
    var url = "http://msr1.cloudapp.net:8080/msr-ws/api/msr/devices";
    
    var internalRequest = require('request');

    internalRequest(url, function (error, response, body) {
    if(!error && (response.statusCode == 200 || response.statusCode == 201)){
        
       result =  body;
     }
    })
            
    response.send(200, result);
};